﻿#ifndef CDevationStateScal_H
#define CDevationStateScal_H
/********************************************************************************
** @ Date:2024/08/19
** @ Author: HanJiaXin
** @ Description:跑偏状态标尺
** @ Version:1.0.0
** @ ClassName:
** @ Fun:
********************************************************************************/
#include <QWidget>
#include "ui_CDevationStateScal.h"

class CDevationStateScal : public QWidget
{
	Q_OBJECT

public:
	CDevationStateScal(QWidget *parent = nullptr);
	~CDevationStateScal();

	void setDeviationValue(double nLeft, double m_nRight, double nCorrectSetValue,double dCorrectSetValueTwo, int nIsHaveBeltState, bool bBeltState);

protected:
	void paintEvent(QPaintEvent *event) override;

private:
	Ui::CDevationStateScalClass ui;
	double m_dLeft;//左偏距离单位MM
	double m_dRight;//右偏距离单位MM
	double m_dCorrectSetValue;//跑偏判定值(一级)
	double m_dCorrectSetValueTwo;//跑偏判定值(二级)
	int m_nIsHaveBeltState;
	bool m_bBeltState;
};

#endif